package com.youxin.cpcenter.service.impl;

import org.springframework.stereotype.Service;

import com.qiniu.common.QiniuException;
import com.youxin.busfoundation.common.qiniu.UploadQiniuUtils;
import com.youxin.cpcenter.service.UploadService;
/**
 * 上传委托文件到七牛云
 * @author yingde.cao
 *
 */
@Service("uploadService")
public class UploadServiceImpl extends BaseServiceImpl implements UploadService {
	public String upload(String bucket,byte[] bytes, String fileName) throws QiniuException {		
		return UploadQiniuUtils.upload(bucket, bytes, fileName);	

	}

}
